/*
 * field.h
 *
 *  Created on: Apr 18, 2012
 *      Author: songbo
 */

#ifndef FIELD_H_
#define FIELD_H_
#include<string>
namespace retail {

class field {

public:
	field(std::string  ftype, double fpecent):type(ftype),length(-1),pecent(fpecent) {}
	field(std::string  ftype, int flength,double fpecent):type(ftype),length(flength),pecent(fpecent) {}

private:
	std::string type;
	int length;
	double pecent;
};

} /* namespace retail */
#endif /* FIELD_H_ */
